package main
//alisa
import std "fmt"
import "strconv"
//常量
const PI  = 3.14
//全局变量
var name  = "robot"
var (
	b1 bool
)
//一般声明类型
type type1 int
//结构的声明
type  robot struct {

}
//接口的声明
type GoLang interface {

}
type (
	i int //系统位数决定32/64
	i1 uint //无符号int
	i2 int8 //...
	i3 rune //相当于int32
	b byte
	f32 float32
	f64 float64
	s string
	c complex64
	c1 complex128
	p uint //...保存指针？

)

const(
	con string="hello girl..."
	con1 int = len(con);
)
const(
	B int64= 1
	KB int64 =1<<(iota*10)
	MB
	GB
	TB
	PB
	EB
	//ZB
	//YB
)

func main()  {
	std.Println("Hello girl...")
	std.Println(name)
	std.Println(b1)
	var t i = 1
	  it := 1
	std.Println(it)
	std.Println(t)

	var a,b,c,d int16
	a,b,c,d = 1,2,3,4
	std.Println(a+b+c+d)
	var a1,b1,c1,d1 int16 = 1,2,3,4
	std.Println(a1+b1+c1+d1)
	var in1 int  = 64
	e:=string(in1)
	std.Println("-----------")
	std.Println(e)
	std.Println(strconv.Itoa(in1))
	std.Println("-----------")
	a2:=21
	var b2 i =21
	var bo bool =(a2==int(b2))
	std.Println(bo)

	std.Println(con1)
	//enum
	std.Println(
	B,
	KB ,
	MB,
	GB,
	TB,
	PB,
	EB)

}
